package com.foreknow.service.impl;

import com.foreknow.dao.RegistLevelMapper;
import com.foreknow.dao.SettleCategoryMapper;
import com.foreknow.entity.RegistLevel;
import com.foreknow.entity.SettleCategory;
import com.foreknow.service.SettleCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SettleCategoryServiceImpl implements SettleCategoryService {
    @Autowired
    private SettleCategoryMapper settleCategoryMapper;

    @Override
    public List<SettleCategory> quetyAll(SettleCategory settleCategory) {
        return settleCategoryMapper.quetyAll(settleCategory);
    }

    @Override
    public SettleCategory selectByPrimaryKey(int id) {
        return settleCategoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateById(SettleCategory settleCategory) {
        return settleCategoryMapper.updateByPrimaryKey(settleCategory);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return settleCategoryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public Integer deleteSettleById(List<Integer> ids) {
        return settleCategoryMapper.deleteSettleById(ids);
    }

    @Override
    public int insertUser(SettleCategory settleCategory) {
        return settleCategoryMapper.insert(settleCategory);
    }




}
